home *** CD-ROM | disk | FTP | other *** search
Makefile | 1993-10-08 | 1.9 KB | 101 lines |
- #
- # Makefile for vopl
- #
- # Usage: make os
- #
- # You might have to set:
- #
- # OS
- # RANLIB
- # MCFLAGS
- # MCFLAGS
- # LIBS
- # F77
- # MFFLAGS
- #
- ############################################################
- #
- # You can set -DBSD or -DSYS5 here
- #
- #OS = -DBSD
-
- # If you set -DSYS5 then set RANLIB = "ar ts" or "echo"
- #RANLIB = ar ts
-
- #
- # Global CFLAGS can be set here. These are the ones we use on a sun.
- #
- # NOTE: change the -L bit or put libvogl.a and libhershey.a somewhere
- # where the linker can find them....
- #WHERELIBS = -L/decr/dist/vogl/src -L/decr/dist/vogl/hershey/src
- #
- #MCFLAGS = -g $(OS)
- MCFLAGS = $(OS) -O -fsingle /usr/lib/libm.il $(WHERELIBS)
- #MCFLAGS = $(OS) -O4 -fsingle -f68881 /usr/lib/libm.il
- #
- # Or on an apollo... (-Wp make it use the 'other cpp')
- #MCFLAGS = $(OS) -O -Wp -M3000
-
- #
- # If we have fortran we have to say so.
- #
- F77 = f77
- # Global FFLAGS can be set here. These are the ones we use on a sun.
- #
- MFFLAGS = $(OS) -O4 /usr/lib/libm.il $(WHERELIBS)
- #MFFLAGS = $(OS) -O4 -f68881 /usr/lib/libm.il
-
- #
- # The name of the library to install and where to put it.
- #
- LIB = libvopl.a
- DEST = /usr/lib
-
- #
- # Any other libraries that are needed go here
- #
-
- SUNLIBS = -lvogl -lsuntool -lsunwindow -lpixrect -lX11
- X11LIBS = -lX11
- UNIXLIBS =
- APOLLOLIBS =
-
- LIBS = $(SUNLIBS)
-
-
- all:
- cd src; make -f Makefile \
- MCFLAGS="$(MCFLAGS)"
-
- if test -n "$(F77)" ; \
- then cd examples; \
- make -f Makefile.f77 \
- MFFLAGS="$(MFFLAGS)" \
- LIBS="$(LIBS)"; \
- fi; exit 0
-
- cd examples; make -f Makefile \
- MCFLAGS="$(MCFLAGS)" \
- LIBS="$(LIBS)"
-
- cd gpp; make -f Makefile \
- MCFLAGS="$(MCFLAGS)" \
- LIBS="$(LIBS)"
-
- clean:
- cd src; make clean
- cd examples; make clean
- cd examples; make -f Makefile.f77 clean
- cd gpp; make clean
-
- clobber:
- cd src; make clobber
- cd examples; make clobber
- cd examples; make -f Makefile.f77 clobber
- cd gpp; make clobber
-
- install:
- cp src/$(LIB) $(DEST)
- chmod 644 $(DEST)/$(LIB)
- $(RANLIB) $(DEST)/$(LIB)
-